package cn.ac.siom.query.service.impl;


import cn.ac.siom.query.dao.ITab_thesis_HotDAO;
import cn.ac.siom.query.service.ITab_thesis_HotService;
import cn.ac.siom.query.vo.Tab_Thesis;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.List;

@Service
public class Itab_thesisServiceImpl implements ITab_thesis_HotService {


    @Resource
    private ITab_thesis_HotDAO tab_thesis_HotDAO;


    @Override
    public List<Tab_Thesis> list() throws SQLException {
        return tab_thesis_HotDAO.find_list();
    }

    @Override
    public List<Tab_Thesis> list_NO(Integer id) throws SQLException {
        return tab_thesis_HotDAO.findNo(id);
    }

    @Override
    public List<Tab_Thesis> list_page( Integer page_id) throws SQLException {
        return tab_thesis_HotDAO.findPage(page_id);
    }

    @Override
    public Integer list_count() throws SQLException {
        return tab_thesis_HotDAO.findCount();
    }

    @Override
    public boolean update(Integer id) throws SQLException {
        return tab_thesis_HotDAO.update(id);
    }
}
